package com.fenghongzhang.kuaishou.widget;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;


public class MyBottomBarItem extends LinearLayout {
    private String title;
    private Drawable drawable;


    public MyBottomBarItem(Context context) {
        super(context);
        init();
    }
    public void init(){
        setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT));
        setOrientation(VERTICAL);
    }

    public MyBottomBarItem setTitle(String title){
        this.title = title;
        return this;
    }

    public MyBottomBarItem setDrawable(Drawable drawable) {
        this.drawable = drawable;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public Drawable getDrawable() {
        return drawable;
    }
}
